package com.cjkj.system.domain.dto;

import com.cjkj.common.core.constant.RegConstants;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class UserResetPassword {
    /** 用户账号 */
    @NotBlank(message = "账号不能为空！")
    private String userName;

    /** 密码 */
    @NotBlank(message = "密码不能为空！")
    @Pattern(regexp = RegConstants.PASSWORD, message = "密码格式不正确！")
    private String password;
}
